package com.tiny.factory.pizzaaf;

import com.tiny.factory.pizzaaf.pizzas.ChicagoPizzaStore;
import com.tiny.factory.pizzaaf.pizzas.NYPizzaStore;
import com.tiny.factory.pizzaaf.pizzas.Pizza;
import com.tiny.factory.pizzaaf.pizzas.PizzaStore;

/**
 * Created by zhumenglong on 2017/4/3.
 */
public class PizzaTestDrive {
    public static void main(String[] args) {
        PizzaStore nyStore = new NYPizzaStore();
        PizzaStore chicagoStore = new ChicagoPizzaStore();

        Pizza pizza = nyStore.orderPizza("cheese");
        System.out.println("梦龙点了 " + pizza + "\n");

        pizza = chicagoStore.orderPizza("cheese");
        System.out.println("芬达点了 " + pizza + "\n");

        pizza = nyStore.orderPizza("clam");
        System.out.println("梦龙点了 " + pizza + "\n");

        pizza = chicagoStore.orderPizza("clam");
        System.out.println("芬达点了 " + pizza + "\n");

        pizza = nyStore.orderPizza("pepperoni");
        System.out.println("梦龙点了 " + pizza + "\n");

        pizza = chicagoStore.orderPizza("pepperoni");
        System.out.println("芬达点了 " + pizza + "\n");

        pizza = nyStore.orderPizza("veggie");
        System.out.println("梦龙点了 " + pizza + "\n");

        pizza = chicagoStore.orderPizza("veggie");
        System.out.println("芬达点了 " + pizza + "\n");
    }
}
